package com.bwie.record.service.impl;

import com.bwie.record.domain.DataThree;
import com.bwie.record.mapper.DataThreeMapper;
import com.bwie.record.service.DataThreeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DataThreeServiceImpl
 * @Description 描述
 * @Author ZiZheng.Li
 * @Date 2024/7/7 16:42
 */
@Service
public class DataThreeServiceImpl implements DataThreeService {
    @Autowired
    private DataThreeMapper dataThreeMapper;

    @Override
    public int addDataThree(DataThree dataThree) {
        return dataThreeMapper.insert(dataThree);
    }

    @Override
    public int updateDataThree(DataThree dataThree) {
        return dataThreeMapper.update(dataThree);
    }

    @Override
    public DataThree getDataThreeById(String id) {
        return dataThreeMapper.findById(id);
    }

    @Override
    public List<DataThree> findAll() {
        return dataThreeMapper.findAll();
    }
}
